package com.diploma.project.aiqiyi.common.enums;

/**
 * 全局类错误码
 */
public enum CommonOutputEnum {

    SUCCESS(0, "成功"),
    ERROR(5000, "系统出现未知异常"),
    BUSY(5001, "服务繁忙"),
    SERVICE_INVOKE_FAIL(5002, "服务调用失败"),
    LOGIN_TIMEOUT(5010, "登录信息已过期，请重新登录"),
    _4000(4000, "参数校验失败"),
    _4001(4001, "%s"), // 非法参数
    _4003(4003, "%s"), // 非法操作
    _4004(4004, "未查询到数据"), // 未查询到数据
    _4005(4005, "%s"), // 其他
    _4041(4041, "缺少参数[%s]"),
    _4042(4042, "该手机号已经注册"),
    _4043(4043, "请先登录"),
    _4044(4044, "登录信息已失效，请重新登录"),
    _4045(4045, "用户未注册，请先注册"),
    _4046(4046, "用户密码不正确"),
    ;

    Integer code;
    String msg;

    CommonOutputEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
